# $Id: PKGBUILD 469 2011-11-09 07:42:20Z pupykins $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=firefox-imglikeopera
pkgver=0.6.20
pkgrel=4
pkgdesc="plugin for firefox which shows/hides images"
arch=('any')
url="http://imglikeopera.mozdev.org/"
license=('GPL2')
depends=("firefox")
makedepends=('unzip')
source=(http://downloads.mozdev.org/imglikeopera/imglikeopera-$pkgver.xpi)
md5sums=('84ac7b29bddd9ee5e2b7d4ccb45cf554')

build() {
    cd $srcdir
    local emid='imglikeopera@imfo.ru'
    local dstdir=$pkgdir/usr/lib/firefox/extensions/${emid}
    install -d $dstdir
    sed -i 's#maxVersion=".*"#maxVersion="20.*"#' install.rdf
    cp -R * $dstdir
    rm $dstdir/imglikeopera-$pkgver.xpi
}
